<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
        <title> 登录 </title>
        <link rel="stylesheet" href="/v3/css/basic.css" type="text/css"/>
        <link rel="stylesheet" href="/v3/css/style.css" type="text/css"/>
        <script type="text/javascript" src="/v3/js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="/v3/js/index.js"></script>
    </head>
    <body>
        <div class="container">
            <div class="login-wrapper">
                <div class="logo-box">
                     <div class="logo">
                         <img src="./images/logo.png" alt="">
                     </div>
                     <div class="system-name">华衣运营数据中心</div>
                </div>
                <div class="login-form">
                    <form method="post" action="/login" id="formLogin">
                    <div class="login-item">
                        <div class="icon-box">
                           <img src="/v3/images/icon/user.png" alt="">
                        </div>
                        <input type="text"  th:value="${username}" name="username" placeholder="请输入手机号">
                    </div>
                    <div class="login-item">
                       <div class="icon-box">
                          <img src="/v3/images/icon/ico-pwd1.png" alt="">
                       </div>
                       <input type="password"name="password" id="password" placeholder="请输入密码">
                   </div>
                   <div class="login-btn" id="loginBtn">
                       登录
                   </div>
                        <span th:text="${error}">错误提示</span>
                    </form>
                </div>
             </div>
       
        </div>
    <script>
        $(function () {
            $("#loginBtn").click(function () {
                $("#formLogin").submit();
            })
        })
    </script>
    </body>
</html>